<?php

class UrlHelper extends BaseObject{
	protected static $instance=null;
	public static function invoke($caller, $args) {
		if(null === self::$instance) {
			self::$instance = new self();
		}
		$urls = self::$instance->signal()->emit('url', $args);
		$url = Nanoframe::getInstance()->root().end($urls);
		return $url;
	}
}
